package code09.Bank;

/**
 * @ClassName CheckAccountTest
 * @Description TODO
 * @Author wuhn Email:1845979768@qq.com
 * @Date 2021/8/12 20:12
 * @Version 1.0
 */
public class CheckAccountTest {
    public static void main(String[] args) {
        CheckAccount check=new CheckAccount(1122,20000,0.45,5000);
        check.withDraw(5000);
        System.out.println("您的账户余额为:"+ check.getBalance());
        System.out.println("您的可透支余额为:"+check.getOverdraft());
        check.withDraw(18000);
        System.out.println("您的账户余额为:"+ check.getBalance());
        System.out.println("您的可透支余额为:"+check.getOverdraft());
        check.withDraw(3000);
        System.out.println("您的账户余额为:"+ check.getBalance());
        System.out.println("您的可透支余额为:"+check.getOverdraft());
    }
}
